<?php
/**
 * 【超人】模块定义
 *
 * @author 超人
 * @url
 */
defined('IN_IA') or exit('Access Denied');
class SupermanErrno {
    const OK = 0;
    const SYSTEM_ERROR = 1;
    const PARAM_ERROR = 2;
    const INVALID_REQUEST = 3;
    const NOT_LOGIN = 4;
    const NOT_IN_WECHAT = 5;
    const SIGNATURE_ERROR = 6;
    const REDIRECT = 7;
    const NOT_SUBSCRIBE = 8;
    const INSERT_FAIL = 9;
    const NO_CATEGORY = 10;
    const UPDATE_FAIL = 11;
    const NO_TPLID = 12;
    const NO_OPENID = 13;
    const UNIACID_NO_AUTH = 14;
    const DELETE_FAIL = 15;

    //const TODO_TODO = 1000;

    public static $ERRMSG = array(
        self::OK => 'ok',
        self::SYSTEM_ERROR => '系统错误',
        self::PARAM_ERROR => '参数错误',
        self::INVALID_REQUEST => '非法请求',
        self::NOT_LOGIN => '未登录，跳转中...',
        self::NOT_IN_WECHAT => '请使用微信访问',
        self::SIGNATURE_ERROR => '签名错误',
        self::REDIRECT => '跳转中...',
        self::NOT_SUBSCRIBE => '未关注公众号',
        self::INSERT_FAIL => '数据库插入失败',
        self::NO_CATEGORY => '暂无物品分类，请等待管理员创建',
        self::UPDATE_FAIL => '数据库更新失败',
        self::NO_TPLID => '未配置模版消息',
        self::NO_OPENID => '未配置管理员openid',
        self::UNIACID_NO_AUTH => '非认证服务号没有模板消息权限',
        self::DELETE_FAIL => '数据库删除失败',

        //self::TODO_TODO => 'TODO_TODO',
    );
}
